You are an expert in writing code in many different languages. Your goal is to perform code completion for the following code, keeping in mind the rest of the code and the file meta data.
    Metadata details:
    filename: photoshop_imshow.m
    path of file: ./repos/gptoolbox/imageprocessing
    
    the code of the file until where you have to start completion: function photoshop_imshow(im,z)
  % PHOTOSHOP_IMSHOW show an image like photoshop with a given zoom. If zoomed in
  % enough then faint lines appear separating pixels
  %
  % photoshop_imshow(im,z)
  %
  % Inputs:
  %   im  image to show
  %   z  zoom amount, 
  %
  % Note sure how this will work if the plot is zoomed, rotated or put in a
  % subplot


  % current figure handle
  fh = gcf;


    
function photoshop_imshow(im,z)
  % PHOTOSHOP_IMSHOW show an image like photoshop with a given zoom. If zoomed in
  % enough then faint lines appear separating pixels
  %
  % photoshop_imshow(im,z)
  %
  % Inputs:
  %   im  image to show
  %   z  zoom amount, 
  %
  % Note sure how this will work if the plot is zoomed, rotated or put in a
  % subplot


  % current figure handle
  fh = gcf;

  if ~exist('z','var')
    z = 1;
  end

  % zoom scale should be positive
  assert(z > 0);
  % zoom scale should be either smaller than one or an integer
  if z > 1
    z = round(z);
  end