Image detection fixed