FIX: Check if position is in image bounds