added function getHeaderFooter to get the header and footer heights.
Added function photoCount to get the number of photos to be used.
Added function photosPerRow to get the photos per row count from the user.
Added function calcPhotoSize to calculate the photo size of the gallery images.
Added function calcPageHeight to calcualte the total page height with photos.