Auto detect image
Detect file ruler