Fix getting height and width from current picture.
Unused methods
Missing property
Function end() expects a reference
Possible undeclared variables.

The variables:
	- $competition_date
	- $medium

do not seem to be defined for all execution paths leading up to this point.
Visibility must be declared on method "__construct"
Avoid function calls in a FOR loop test part
simply return statement.
Reformat code
Avoid function calls in a FOR loop test part
Useless method overriding