prevent double clicking for large images