Added new functions to the image-action protocol

  - Also rewrote the scale, flip and rotate functions
  - Added angle to the Image record