According to the law of reflection; the angle of incidence is equal to the angle of reflection. Therefore the angle of reflection would be 90o when the angle of incidence is 90o. This will happen when the source of light is perpendicular to the object. Hence the longest image will be formed when the source of light and the object are perpendicular to each other.