photo gets captured without edge detection